package com.hxzy.controller;

import com.hxzy.common.resp.R;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/9/27 10:00
 * @Version 1.0
 */
@RestController
@RequestMapping(value = "/demo")
public class DemoController {

    @PreAuthorize(value = "@ss.hasAuthority('monitor:online:list')")
    @GetMapping(value = "/test")
    public R  test(){
        return R.ok();
    }

}
